#!/usr/bin/perl
print "Enter string\n";
while (<>) {
chomp;
  if (/match/) {
  print "Matches |$`<$&>$'|\n";
  last;
  } else {
    print "No match |$_|\n";
    }
}
